import { newRequest } from '@/utils/newRequest'

//第一：产品扫描
export function getScanBoxProductStart(params) {
    return newRequest({
        url: '/api/Doing/GetScanBoxProductStart',
        method: 'get',
        params: {
            ...params
        }
    })
}
//第二：箱子物料扫描
export function scanBoxMaterial(data) {
    return newRequest({
        url: '/api/Doing/ScanBoxMaterial',
        method: 'post',
        data: {
            ...data
        }
    })
}
//第三：产品扫描
export function getScanBoxProductEnd(params) {
    return newRequest({
        url: '/api/Doing/GetScanBoxProductEnd',
        method: 'get',
        params: {
            ...params
        }
    })
}
//第四：产品提交
export function commitScanBoxProduct(data) {
    return newRequest({
        url: '/api/Doing/CommitScanBoxProduct',
        method: 'post',
        data: {
            ...data
        }
    })
}
//订单扫描
export function getScanBoxOrderBag(params) {
    return newRequest({
        url: '/api/Doing/GetScanBoxOrderBag',
        method: 'get',
        params: {
            ...params
        }
    })
}
//开/关箱
export function openOrCloseBox(data) {
    return newRequest({
        url: '/api/Doing/OpenOrCloseBox',
        method: 'post',
        data: {
            ...data
        }
    })
}
//添加/移除产品
export function addOrRemoveBoxProduct(data) {
    return newRequest({
        url: '/api/Doing/AddOrRemoveBoxProduct',
        method: 'post',
        data: {
            ...data
        }
    })
}

// 获取快递单信息
export function getShippingOrderList(params) {
    return newRequest({
        url: '/api/Doing/GetShippingOrderList',
        method: 'get',
        params: {
            ...params
        }
    })
}

//获取快递单
export function getOrderShippExport(params) {
    return newRequest({
        url: '/api/Doing/GetOrderShippExport',
        method: 'get',
        params: {
            ...params
        }
    })
}


